package com.bbu.javaexam.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bbu.javaexam.domain.FillQuestion;

import java.util.List;

/**
 * @author Alex
 * @version 1.0.0
 * @ClassName FillQuestionService.java
 * @Description TODO
 */
public interface FillQuestionService extends IService<FillQuestion> {
    List<FillQuestion> findByIdAndType(Integer paperId);

    IPage<FillQuestion> findAll(Page<FillQuestion> page);

    FillQuestion findOnlyQuestionId();

    int add(FillQuestion fillQuestion);

    List<Integer> findBySubject(String subject, Integer pageNo);
}
